<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 小夏 < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace app\admin\validate;

use think\Validate;
use think\Db;
//添加卡密 验证
class AddKPValidate extends Validate
{
    protected $rule = [
        'g_id'       => 'require|number',
        'content'        => 'require|length:10,5000',

    ];

    protected $message = [
        'g_id'       => '请选所属产品',
        'content'        => '卡密必须是10-5000个字符内',
    ];

}